<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>修改会员信息</title>
		<link rel="stylesheet" type="text/css"
			href="../css/commonBookTest.css">
			<script language="javascript" type="text/javascript" src="${CONTEXT_ROOT }/My97DatePicker/WdatePicker.js"></script>
		<style type="text/css">
			body {
				background-color: #556b2f;
			}
			
			a:active {
				color: #ffffff;
				text-decoration: none;
			}
			
			a:visited {
				color: #96CFFC;
				text-decoration: none;
			}
			
			a:hover {
				color: yellow;
				text-decoration: underline;
			}
			</style>
	</head>
	<body>
		<center>
			<form action="${CONTEXT_ROOT}/SysMemberServlet" method="post">
				<input type="hidden" name="method" value="update">
				<table border="0" width="70%" bgcolor="#E0E2E1">
					<tr>
						<td align="center" height="20px">
							<br>
						</td>
					</tr>
					<tr>
						<td align="center">
							<font face="华文行楷" size="5">修改会员信息 </font>
						</td>
					</tr>
					<tr>
						<td align="right">
							<a href="${CONTEXT_ROOT}/SysMemberServlet?method=list">返回列表</a>
						</td>
					</tr>
					<tr>
						<td>
							<table width="100%" border="1">
								<tr>
									<td width="20%" align="right">
										会员编号&nbsp;&nbsp;&nbsp;&nbsp;
									</td>
									<td width="80%" align="left">
										${member.memberId}
										<input type="hidden" name="memberId"
											value="${member.memberId}" size="40">
									</td>
								</tr>
								<tr>
									<td align="right">
										会员帐号&nbsp;&nbsp;&nbsp;&nbsp;
									</td>
									<td align="left">
										${member.userName}
										<input type="hidden" name="userName"
											value="${member.userName}" size="20">
									</td>
								</tr>
								<tr>
									<td align="right">
										会员密码&nbsp;&nbsp;&nbsp;&nbsp;
									</td>
									<td align="left">
										<input type="text" name="password" value="${member.password}"
											size="19">
										&nbsp;&nbsp;
										<font color="red"><strong>*</strong>
										</font>
									</td>
								</tr>
								<tr>
									<td align="right">
										会员积分&nbsp;&nbsp;&nbsp;&nbsp;
									</td>
									<td align="left">
										${member.integral}
										<input type="hidden" name="integral"
											value="${member.integral}" size="40">
									</td>
								</tr>
								<tr>
									<td align="right">
										会员等级&nbsp;&nbsp;&nbsp;&nbsp;
									</td>
									<td align="left">
										<select name="gradeId" style="width: 150px">
											<c:forEach items="${memberGradeList}" var="memberGrade0">
												<option value="${memberGrade0.gradeId}"
													${memberGrade0.gradeId ==member.gradeId?"selected":""}>
													${memberGrade0.gradeName}
												</option>
											</c:forEach>
										</select>
									</td>
								</tr>
								<tr>
									<td align="right">
										会员状态&nbsp;&nbsp;&nbsp;&nbsp;
									</td>
									<td align="left">
										<select name="state" style="width: 150px">
											<option value="1" ${member.state==1?"selected":""}>
												启用
											</option>
											<option value="0" ${member.state==0?"selected":""}>
												禁用
											</option>
										</select>
									</td>
								</tr>
								<tr>
									<td colspan="2">
										<p>
											* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
											*
										</p>
									</td>
								</tr>
								<tr>
									<td align="right">
										真实姓名&nbsp;&nbsp;&nbsp;&nbsp;
									</td>
									<td align="left">
										<input type="text" name="name" value="${member.name}"
											size="19">
										&nbsp;&nbsp;
										<font color="red"><strong>*</strong>
										</font>
									</td>
								</tr>
								<tr>
									<td align="right">
										性别&nbsp;&nbsp;&nbsp;&nbsp;
									</td>
									<td align="left">
										<input type="radio" value="男" name="sex" ${member.sex=="男"?"checked":""}>
										男
										<input type="radio" value="女" name="sex" ${member.sex=="女"?"checked":""}>
										女
									</td>
								</tr>
								<tr>
									<td align="right">
										生日&nbsp;&nbsp;&nbsp;&nbsp;
									</td>
									<td align="left">
										<input class="Wdate" type="text" onClick="WdatePicker()" value="${member.birthday}" name="birthday"
											size="40">
									</td>
								</tr>
								<tr>
									<td align="right">
										证件号&nbsp;&nbsp;&nbsp;&nbsp;
									</td>
									<td align="left">
										<input type="text" name="cardId" value="${member.cardId}"
											size="40">
										&nbsp;&nbsp;
										<font color="red"><strong>*</strong>
										</font>
									</td>
								</tr>
								<tr>
									<td align="right">
										电子邮件&nbsp;&nbsp;&nbsp;&nbsp;
									</td>
									<td align="left">
										<input type="text" name="email" value="${member.email}"
											size="40">
										&nbsp;&nbsp;
										<font color="red"><strong>*</strong>
										</font>
									</td>
								</tr>
								<tr>
									<td align="right">
										联系电话&nbsp;&nbsp;&nbsp;&nbsp;
									</td>
									<td align="left">
										<input type="text" name="tel" value="${member.tel}" size="40">
									</td>
								</tr>
								<tr>
									<td align="right">
										联系地址&nbsp;&nbsp;&nbsp;&nbsp;
									</td>
									<td align="left" align="center">
										<input type="text" name="area" value="${member.area}"
											size="20">
										省
										<br>

										<input type="text" name="address" value="${member.address}"
											size="20">
										市/县
									</td>
								</tr>
								<tr>
									<td align="right">
										邮政编码&nbsp;&nbsp;&nbsp;&nbsp;
									</td>
									<td align="left">
										<input type="text" name="zip" value="${member.zip}" size="20">
									</td>
								</tr>
								<tr>
									<td>
										<br>
									</td>
									<td align="center">
										<input type="submit" value="修改" name="button">
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
										<input type="reset" name="button" value="重置">
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</form>
		</center>
	</body>
</html>